package org.chimi.rr4s.domain;

import org.springframework.data.neo4j.annotation.GraphId;
import org.springframework.data.neo4j.annotation.Indexed;
import org.springframework.data.neo4j.annotation.NodeEntity;

/**
 * @author Choi, Beom Kyun
 */
@NodeEntity
public class User {

	@GraphId
	private Long nodeId;

	@Indexed(indexName = "USERSESSIONID")
	private String sessionId;

	@Indexed(indexName = "USERID")
	private String id;

	public User() {
	}

	public User(String sessionId, String id) {
		this.sessionId = sessionId;
		this.id = id;
	}

	public Long getNodeId() {
		return nodeId;
	}

	public String getSessionId() {
		return sessionId;
	}

	public String getId() {
		return id;
	}

}
